<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Company/index')}>">企业管理</a></li>
      	<li class="active">列表</li>
    </ol>

	<form class="form-inline" method="get" action="index.php">
  		<div class="form-group">
    		<label>关键词：</label>
    		<input type="text" class="form-control input-sm" name="keyword" value="<{$keyword}>">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">搜索</button>
		<a class="btn btn-default btn-sm" href="<{:U('Company/index')}>">重置</a>
		<a class="btn btn-info btn-sm" href="<{:U('Company/add')}>">新增企业</a>
		<input type="hidden" name="g" value="Admin" />
		<input type="hidden" name="m" value="Company" />
		<input type="hidden" name="a" value="index" />
	</form>

	<p></p>
	
	<form id="ajaxForm" method="post" action="<{:U('Company/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-hover table-bordered" border="0" cellSpacing="0" cellPadding="0" width="100%">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
		  <TH>id</TH>
		  <TH>企业名称</TH>
		  <TH>招工信息</TH>
		  <TH>排序</TH>
		  <TH>操作</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"></td>
			<td><{$vo.id}></td>
			  <td <{$vo.style}>><eq name="vo.fid" value="0"><strong></eq><{$vo.name}><eq name="vo.fid" value="0"></strong></eq></td>
              <td><{$vo.jobNum}>条 <a href="<{:U('Job/index',array('companyID'=>$vo['id']))}>">查看</a></td>
              <td><{$vo.sort}></td>
			  <td>
			  	<a href="<{:U('Company/edit', array('id'=>$vo['id']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> 编辑</a>
			  	<a href="<{:U('Job/add' , array('companyID'=>$vo['id']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-plus"></i> 添加招聘</a>
			  </td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('招聘信息同时也会被删除！删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

</div>


<input type="hidden" id="menu_action" value="job" />
